package site.anxuan.seckill.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import site.anxuan.seckill.entity.Item;

import java.util.List;

@Mapper
@Repository
public interface ItemDao {

    List<Item> getListOnPromotion();

    Item getById(int itemId);

    int increaseSales(int itemId, int amount);

}
